<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<template>
  <div class="page-viewer">
    <RouterView />
  </div>
  <nav>
    <RouterLink to="/">日报填写</RouterLink>
    <RouterLink to="/about">驻商单位</RouterLink>
    <RouterLink to="/home">报告汇总</RouterLink>
  </nav>
</template>

<style scoped>
.page-viewer {
  height: calc(100% - 52px);
  overflow: auto;
}

::-webkit-scrollbar {
  display: none;
}

nav {
  width: 100%;
  height: 52px;
  font-size: 14px;
  text-align: center;
  background: #ef6b95;
  display: flex;
}

nav a.router-link-exact-active {
  color: hsl(160deg 62.12% 77.52%);
  font-weight: bold;
}

nav a.router-link-exact-active:hover {
  background-color: transparent;
}

nav a {
  flex: 1;
  padding: 1rem 1rem;
  border-left: 1px solid rgb(180 238 231);
  font-size: 16px;
  line-height: 18px;
  color: white;
}

nav a:first-of-type {
  border: 0;
}
</style>
